<template>
    <div class="container">
        <div class="top">
            <div>{{ title }}</div>
        </div>
        <slot></slot>
    </div>
</template>

<script>
export default {
    name: 'TitleCard',
    props: {
        title: {
            type: String,
            default: '标题'
        }
    }
}
</script>

<style lang="scss" scoped>
.container {
    width: 968px;
    margin: auto;
    padding: 20px 0;
    border-bottom: 1px solid #f2f2f2;

    .top {
        font-size: 20px;
        font-weight: 400;
        padding-bottom: 20px;
    }
}
</style>